package com.wp.service;

import org.apache.log4j.Logger;
import org.aspectj.lang.JoinPoint;

public class ErrorLogger {
    /**
     * 定义包含增强方法的JavaBean
     */

    private static final Logger log = Logger.getLogger(ErrorLogger.class);
    public void afterThrowing(JoinPoint jp){
        log.error(jp.getSignature().getName()+"方法结束");
    }
}
